import request from '@/utils/request'

// 查询收费时间列表
export function listCharTime(query) {
  return request({
    url: '/payfee/CharTime/list',
    method: 'get',
    params: query
  })
}

// 查询收费时间详细
export function getCharTime(chartimId) {
  return request({
    url: '/payfee/CharTime/' + chartimId,
    method: 'get'
  })
}

// 新增收费时间
export function addCharTime(data) {
  return request({
    url: '/payfee/CharTime',
    method: 'post',
    data: data
  })
}

// 修改收费时间
export function updateCharTime(data) {
  return request({
    url: '/payfee/CharTime',
    method: 'put',
    data: data
  })
}

// 删除收费时间
export function delCharTime(chartimId) {
  return request({
    url: '/payfee/CharTime/' + chartimId,
    method: 'delete'
  })
}

// 导出收费时间
export function exportCharTime(query) {
  return request({
    url: '/payfee/CharTime/export',
    method: 'get',
    params: query
  })
}